﻿<%@ Page Title="" Language="C#" MasterPageFile="~/rightContent.Master" AutoEventWireup="true"
    CodeBehind="codeIndex.aspx.cs" Inherits="WEB.Code.codeIndex" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="title" runat="server">
    代码查询
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <table style="width: 100%;">
        <tr>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="center" class="style2">
                <asp:Label ID="Label1" runat="server" Text="按代码类别查询:"></asp:Label>
                <asp:DropDownList ID="DropDownList1" runat="server" Height="25px" Style="margin-left: 0px"
                    Width="128px" AutoPostBack="True">
                    <asp:ListItem Value="goodType">货物类别</asp:ListItem>
                    <asp:ListItem Value="docType">单证类别</asp:ListItem>
                    <asp:ListItem Value="busType">业务环节编号</asp:ListItem>
                    <asp:ListItem Value="clientType">企业类别</asp:ListItem>
                    <asp:ListItem Value="Currency">币种类别</asp:ListItem>
                    <asp:ListItem Value="unitType">单位类别</asp:ListItem>
                    <asp:ListItem Value="inoutType">进出口类别</asp:ListItem>
                    <asp:ListItem Value="tradeType">贸易方式</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="center" class="style3">
                <asp:GridView ID="gvcodeManager" runat="server" Height="45px" ForeColor="Black" GridLines="Vertical"
                    AutoGenerateColumns="False" CellPadding="4" OnPageIndexChanging="gvcodeManager_PageIndexChanging"
                    OnRowDeleting="gvcodeManager_RowDeleting" OnRowEditing="gvcodeManager_RowEditing"
                    DataKeyNames="codeID" OnRowDataBound="gvcodeManager_RowDataBound" Width="300px"
                    CssClass="distance" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None"
                    BorderWidth="1px" OnRowCommand="gvcodeManager_RowCommand">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="codeID" HeaderText="代码编号" />
                        <asp:BoundField DataField="codeName" HeaderText="代码名称" />
                        <asp:ButtonField CommandName="BianJi" Text="编辑">
                            <ItemStyle ForeColor="#0066FF" />
                        </asp:ButtonField>
                        <asp:CommandField ShowDeleteButton="True">
                            <ControlStyle ForeColor="#0066FF" />
                        </asp:CommandField>
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" />
                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                    <PagerSettings FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PageButtonCount="5"
                        PreviousPageText="上一页" />
                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                    <RowStyle BackColor="#F7F7DE" />
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#FBFBF2" />
                    <SortedAscendingHeaderStyle BackColor="#848384" />
                    <SortedDescendingCellStyle BackColor="#EAEAD3" />
                    <SortedDescendingHeaderStyle BackColor="#575357" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="添加代码" CssClass="Submit_yellowbig" />
                &nbsp;&nbsp;&nbsp;<asp:Button ID="btDate" runat="server" Text="查看/设置休假日" 
                    CssClass="Submit_yellowbig" onclick="btDate_Click" />
            </td>
        </tr>
        <tr>
            <td align="center">
                &nbsp;
            </td>
        </tr>
    </table>
</asp:Content>
